<?php

/**
 * ConsultaArticulo form.
 *
 * @package    catalogo
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ConsultaArticuloForm extends BaseConsultaArticuloForm
{
  public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at'], $this['orden'], $this['activa']
    );
    
    $this->widgetSchema['texto'] = new sfWidgetFormTextarea(array(
      'label' => 'Pregunta',
    ));    
    $this->widgetSchema['articulo_id'] = new sfWidgetFormInputHidden();  
    $this->widgetSchema['consulta_id'] = new sfWidgetFormInputHidden();
    
    $this->validatorSchema['email'] = new sfValidatorEmail(array(), array(
        'invalid' => 'Esta dirección de correo es inválida.'));
      
  }
}
